package com.edu.lxshpc.config;

import io.swagger.v3.oas.models.ExternalDocumentation;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zgh
 * @date 2023/10/24
 */
@Configuration
public class SwaggerConfig {
    @Bean
    public OpenAPI springShopOpenAPI() {
        return new OpenAPI()
                .info(new Info().title("乐享生活")
                        .description("乐享生活项目api文档")
                        .version("v1.0.0")
                        .license(new License().name("Apache 2.0").url("http://localhost:8081")));
    }
}
